/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package entity.structure;

/**
 *
 * @author dell
 */
import entity.support.Area;
import entity.support.LogIndexable;
import entity.support.Obj;
import java.util.Date;
import java.util.List;
import java.util.LinkedList;
import java.util.Map;
public class Fire extends Obj implements LogIndexable
{
//columns_______________________________________________________________________
private Area area;
private Date starttime;
private Date suretime;
private Date handletime;
private Date endtime;
private int lastlong;
private String companyid;
private String userid;
private String personid;
private String buildingid;
private String facilityid;
private String remark;
//functions_____________________________________________________________________
     //constructor______________________________________________________________
public Fire()
{
    
}
public Fire(Obj o)
{
     this.id=o.getId();
     this.name=o.getName();
     this.intime=o.getIntime();
     this.updatetime=o.getUpdatetime();
}
public Fire(Map<String,String> map)
{
     
}
     //getter___________________________________________________________________
public Area getArea() 
{
     return area;
}
public Date getStarttime() 
{
     return starttime;
}
public Date getSuretime() 
{
     return suretime;
}
public Date getHandletime() 
{
     return handletime;
}
public Date getEndtime() 
{
     return endtime;
}
public int getLastlong() 
{
     return lastlong;
}
public String getCompanyid() 
{
     return companyid;
}
public String getUserid() 
{
     return userid;
}
public String getPersonid() 
{
     return personid;
}
public String getBuildingid() 
{
     return buildingid;
}
public String getFacilityid() 
{
     return facilityid;
}
public String getRemark() 
{
     return remark;
}
     //setter___________________________________________________________________
public void setArea(Area area) 
{
     this.area = area;
}
public void setStarttime(Date starttime) 
{
     this.starttime = starttime;
}
public void setSuretime(Date suretime) 
{
     this.suretime = suretime;
}
public void setHandletime(Date handletime) 
{
     this.handletime = handletime;
}
public void setEndtime(Date endtime) 
{
     this.endtime = endtime;
}
public void setLastlong(int lastlong) 
{
     this.lastlong = lastlong;
}
public void setCompanyid(String companyid) 
{
     this.companyid = companyid;
}
public void setUserid(String userid) 
{
     this.userid = userid;
}
public void setPersonid(String personid) 
{
     this.personid = personid;
}
public void setBuildingid(String buildingid) 
{
     this.buildingid = buildingid;
}
public void setFacilityid(String facilityid) 
{
     this.facilityid = facilityid;
}
public void setRemark(String remark) 
{
     this.remark = remark;
}
     //operator
public List<String> getCompanyidInList()
{
     return StructureUtil.toList(this.companyid);
}
public List<String> getUseridInList()
{
     return StructureUtil.toList(this.userid);
}
public List<String> getPerosnidInlist()
{
     return StructureUtil.toList(this.personid);
}
public List<String> getBuildingidInList()
{
     return StructureUtil.toList(this.buildingid);
}
public List<String> getFacilityidInList()
{
     return StructureUtil.toList(this.facilityid);
}
     //toString_________________________________________________________________
@Override
public String toString()
{
     return super.toString()+"\t"+area+"\t"+starttime+"\t"+suretime+"\t"+handletime+"\t"
             +endtime+"\t"+lastlong+"\t"+companyid+"\t"+userid+"\t"+personid+"\t"
             +buildingid+"\t"+facilityid+"\t"+remark;
}
}
